Component({
  properties: {
    tabs: {
      type: Array,
      value: [],
    },
  },

  data: {},

  methods: {
    handleItemTap(e) {
      const { index } = e.currentTarget.dataset;
      // 触发父组件事件以传参
      this.triggerEvent("tabsItemChange", { index });
    },
  },
});
